public Object getHardReference() { for (FieldHook fh : currentHook.getFieldHooks()) { if (fh.getRefactoredName().equals("getHardReference")) { return fh.getData(currentObject); } } return null; }
public ModelLD getLDModel() { for (FieldHook fh : currentHook.getFieldHooks()) { if (fh.getRefactoredName().equals("getModel")) { Object data = fh.getData(currentObject); if (data != null) return new ModelLD(data); } } return null; }