private T loadEntityFromObject(Class<T> loadClass, TObject object) {
        T ret = null;
        try {
            ret = loadClass.newInstance();

            for (ObjectFields of : object.getObjectFieldsList()) {
                Field f = loadClass.getDeclaredField(of.getName());
                if (!f.isAccessible())
                    f.setAccessible(true);
                f.set(ret, objectFieldsJpaController.getValue(of));
            }
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        } catch (InstantiationException e) {
            e.printStackTrace();
        } catch (NoSuchFieldException e) {
            e.printStackTrace();
        }

        return ret;
    }