class EntityFactoryHolder {

    static EntityFactory FACTORY;

    public static EntityFactory get() {<FILL_FUNCTION_BODY>}

    public static <T> T newInstance(Class<T> type,
                                    Supplier<T> mapper) {
        if (FACTORY != null) {
            return FACTORY.newInstance(type,mapper);
        }
        return mapper.get();
    }

}

        if (FACTORY == null) {
            throw new IllegalStateException("EntityFactory Not Ready Yet");
        }
        return FACTORY;
    
<no_super_class>