UserDefinedJsonSchemaConfiguration () { final UserDefinedJsonSchemaConfiguration info = new UserDefinedJsonSchemaConfiguration(); info.setApplicationDefined(mySchema.isApplicationDefined()); if (myView != null && myView.isInitialized()) { info.setName(getDisplayName()); info.setSchemaVersion(myView.getSchemaVersion()); info.setPatterns(myView.getData()); info.setRelativePathToSchema(myView.getSchemaSubPath()); } else { info.setName(mySchema.getName()); info.setSchemaVersion(mySchema.getSchemaVersion()); info.setPatterns(mySchema.getPatterns()); info.setRelativePathToSchema(mySchema.getRelativePathToSchema()); } return info; }