public static void removeLazyFields(JavaClassDescriptor desc, Object o) {
    	
        Class < ? > cl =  getHibernateClass();
    	
        if (cl == null) {
            return;
        }
        
        Method method = getInitializeMethod(cl);
        
        List<Integer> deleteIndexes = new ArrayList<Integer>(); 
        
        for (int i = 0; i < desc.getPropertiesCount(); i++) {
            Object obj = desc.getPropertyValue(i, o);
                          
            if (!isPropertyInitialized(method, obj)) {
            	deleteIndexes.add(i);
            }
    	}
        
        deleteProperties(deleteIndexes, desc);
    }