Program: 13281
Project: 13281
Buggy source:
/** 
 * Constructs a new managed object set.
 * @param scriptRegistry
 * @param cryptoService
 * @param config configuration object to use to initialize managed object set.
 * @throws JsonValueException when the configuration is malformed
 * @throws ScriptException when the script configuration is malformed or the script is invalid.
 */
public ManagedObjectSet(final ScriptRegistry scriptRegistry,final CryptoService cryptoService,final AtomicReference<RouteService> syncRefrence,JsonValue config) throws JsonValueException, ScriptException {
  this.service=cryptoService;
  this.syncRoute=syncRefrence;
  name=config.get("String_Node_Str").required().asString();
  if (name.trim().isEmpty() || name.indexOf('{') > 0 | name.indexOf('}') > 0) {
    throw new JsonValueException(config.get("String_Node_Str"),"String_Node_Str");
  }
  schema=config.get("String_Node_Str").expect(Map.class);
  if (config.isDefined("String_Node_Str")) {
    onCreate=scriptRegistry.takeScript(config.get("String_Node_Str"));
  }
 else {
    onCreate=null;
  }
  if (config.isDefined("String_Node_Str")) {
    onRead=scriptRegistry.takeScript(config.get("String_Node_Str"));
  }
 else {
    onRead=null;
  }
  if (config.isDefined("String_Node_Str")) {
    onUpdate=scriptRegistry.takeScript(config.get("String_Node_Str"));
  }
 else {
    onUpdate=null;
  }
  if (config.isDefined("String_Node_Str")) {
    onDelete=scriptRegistry.takeScript(config.get("String_Node_Str"));
  }
 else {
    onDelete=null;
  }
  if (config.isDefined("String_Node_Str")) {
    onValidate=scriptRegistry.takeScript(config.get("String_Node_Str"));
  }
 else {
    onValidate=null;
  }
  if (config.isDefined("String_Node_Str")) {
    onRetrieve=scriptRegistry.takeScript(config.get("String_Node_Str"));
  }
 else {
    onRetrieve=null;
  }
  if (config.isDefined("String_Node_Str")) {
    onStore=scriptRegistry.takeScript(config.get("String_Node_Str"));
  }
 else {
    onStore=null;
  }
  for (  JsonValue property : config.get("String_Node_Str").expect(List.class)) {
    properties.add(new ManagedObjectProperty(scriptRegistry,cryptoService,property));
  }
  enforcePolicies=Boolean.parseBoolean(IdentityServer.getInstance().getProperty("String_Node_Str","String_Node_Str"));
  logger.debug("String_Node_Str",name);
}

Fixed version (ground truth):
/** 
 * Constructs a new managed object set.
 * @param scriptRegistry
 * @param cryptoService the cryptographic service
 * @param syncRoute
 * @param config configuration object to use to initialize managed object set.
 * @throws JsonValueException when the configuration is malformed
 * @throws ScriptException when the script configuration is malformed or the script is invalid.
 */
public ManagedObjectSet(final ScriptRegistry scriptRegistry,final CryptoService cryptoService,final AtomicReference<RouteService> syncRoute,JsonValue config) throws JsonValueException, ScriptException {
  this.cryptoService=cryptoService;
  this.syncRoute=syncRoute;
  name=config.get("String_Node_Str").required().asString();
  if (name.trim().isEmpty() || name.indexOf('{') > 0 | name.indexOf('}') > 0) {
    throw new JsonValueException(config.get("String_Node_Str"),"String_Node_Str");
  }
  schema=config.get("String_Node_Str").expect(Map.class);
  if (config.isDefined("String_Node_Str")) {
    onCreate=scriptRegistry.takeScript(config.get("String_Node_Str"));
  }
 else {
    onCreate=null;
  }
  if (config.isDefined("String_Node_Str")) {
    onRead=scriptRegistry.takeScript(config.get("String_Node_Str"));
  }
 else {
    onRead=null;
  }
  if (config.isDefined("String_Node_Str")) {
    onUpdate=scriptRegistry.takeScript(config.get("String_Node_Str"));
  }
 else {
    onUpdate=null;
  }
  if (config.isDefined("String_Node_Str")) {
    onDelete=scriptRegistry.takeScript(config.get("String_Node_Str"));
  }
 else {
    onDelete=null;
  }
  if (config.isDefined("String_Node_Str")) {
    onValidate=scriptRegistry.takeScript(config.get("String_Node_Str"));
  }
 else {
    onValidate=null;
  }
  if (config.isDefined("String_Node_Str")) {
    onRetrieve=scriptRegistry.takeScript(config.get("String_Node_Str"));
  }
 else {
    onRetrieve=null;
  }
  if (config.isDefined("String_Node_Str")) {
    onStore=scriptRegistry.takeScript(config.get("String_Node_Str"));
  }
 else {
    onStore=null;
  }
  for (  JsonValue property : config.get("String_Node_Str").expect(List.class)) {
    properties.add(new ManagedObjectProperty(scriptRegistry,cryptoService,property));
  }
  enforcePolicies=Boolean.parseBoolean(IdentityServer.getInstance().getProperty("String_Node_Str","String_Node_Str"));
  logger.debug("String_Node_Str",name);
}