# Class: com.pnfsoftware.jeb.core.EnginesContextUtil

Utility routines for [JEB Engines context](IEnginesContext).

## Static Method: createNewProjectFromFile
- parameter: `engctx`, type: `com.pnfsoftware.jeb.core.IEnginesContext`
- parameter: `file`, type: `java.io.File`
- return type: `com.pnfsoftware.jeb.core.IRuntimeProject`

Description: Process a file in a newly\-created JEB project.
parameter: engctx: JEB engines context
parameter: file: the artifact file to be processed
return: the created project, containing a single file artifact, and units and sub\-units         resulting from the initial processing
throws: on project creation or artifact\-processing error

## Static Method: getMainProject
- parameter: `engctx`, type: `com.pnfsoftware.jeb.core.IEnginesContext`
- return type: `com.pnfsoftware.jeb.core.IRuntimeProject`

Description: Retrieve the main project.
parameter: engctx: JEB engines context
return: the main project, or null if no project is open

