public EntryPoint getEntryPoint(ClassLoaderResolver classLoaderResolver, File root, Iterable<? extends File> classPath) {
        if (entryPoint == null || entryPoint.length() == 0) {
            throw new GradleException("Entry point name is not defined");
        }
        for (EntryPoint.Default entryPoint : EntryPoint.Default.values()) {
            if (this.entryPoint.equals(entryPoint.name())) {
                return entryPoint;
            }
        }
        try {
            return (EntryPoint) Class.forName(entryPoint, false, classLoaderResolver.resolve(getClassPath(root, classPath)))
                    .getDeclaredConstructor()
                    .newInstance();
        } catch (Exception exception) {
            throw new GradleException("Cannot create entry point: " + entryPoint, exception);
        }
    }
public EntryPoint getEntryPoint ( ClassLoaderResolver classLoaderResolver , File root , Iterable < ? extends File > classPath ) { if ( entryPoint == null || entryPoint . length ( ) == 0 ) { throw new GradleException ( "Entry point name is not defined" ) ; } for ( EntryPoint . Default entryPoint : EntryPoint . Default . values ( ) ) { if ( this . entryPoint . equals ( entryPoint . name ( ) ) ) { return entryPoint ; } } try { return ( EntryPoint ) Class . forName ( entryPoint , false , classLoaderResolver . resolve ( getClassPath ( root , classPath ) ) ) . getDeclaredConstructor ( ) . newInstance ( ) ; } catch ( Exception exception ) { throw new GradleException ( "Cannot create entry point: " + entryPoint , exception ) ; } }
Resolves this initialization to an entry point instance.

@param classLoaderResolver The class loader resolver to use if appropriate.
@param root                The root file describing the current tasks classes.
@param classPath           The class path of the current task.
@return A resolved entry point.