nus-yam/ex-repair huggingface dataset:
Program: 29629
Project: 29629
Buggy source:
/** 
 * Open the new log file for the date specified by <code>date</code>.
 */
private void open(){
  File dir=new File(directory);
  if (!dir.isAbsolute())   dir=new File(System.getProperty("String_Node_Str"),directory);
  if (!dir.mkdirs()) {
  }
  try {
    String pathname=dir.getAbsolutePath() + File.separator + prefix+ date+ suffix;
    writer=new PrintWriter(new FileWriter(pathname,true),true);
  }
 catch (  IOException e) {
    writer=null;
  }
}

Fixed version (ground truth):
/** 
 * Open the new log file for the date specified by <code>date</code>.
 */
private void open(){
  File dir=new File(directory);
  if (!dir.isAbsolute())   dir=new File(System.getProperty("String_Node_Str"),directory);
  if (!dir.mkdirs() && !dir.exists()) {
    writer=null;
    return;
  }
  try {
    String pathname=dir.getAbsolutePath() + File.separator + prefix+ date+ suffix;
    writer=new PrintWriter(new FileWriter(pathname,true),true);
  }
 catch (  IOException e) {
    writer=null;
  }
}
Program: 29630
Project: 29630
Buggy source:
public ClientJarWriter(final ExtendedDeploymentContext deploymentContext){
  this.deploymentContext=deploymentContext;
  name=deploymentContext.getCommandParameters(DeployCommandParameters.class).name();
  logger=deploymentContext.getLogger();
}

Fixed version (ground truth):
public ClientJarWriter(final ExtendedDeploymentContext deploymentContext){
  this.deploymentContext=deploymentContext;
  name=VersioningUtils.getUntaggedName(deploymentContext.getCommandParameters(DeployCommandParameters.class).name());
  logger=deploymentContext.getLogger();
}
Program: 29632
Project: 29632
Buggy source:
static public InstanceStateFileProcessor createNew(HashMap<String,InstanceState> st,File xmlFileObject) throws IOException {
  BufferedWriter writer=new BufferedWriter(new FileWriter(xmlFileObject));
  writer.write("String_Node_Str");
  writer.newLine();
  writer.write("String_Node_Str");
  writer.newLine();
  writer.write("String_Node_Str");
  writer.newLine();
  for (  String s : st.keySet()) {
    writer.write("String_Node_Str" + s + "String_Node_Str"+ InstanceState.StateType.NO_RESPONSE.getDescription()+ "String_Node_Str");
    writer.newLine();
  }
  writer.write("String_Node_Str");
  writer.newLine();
  writer.flush();
  writer.close();
  return new InstanceStateFileProcessor(st,xmlFileObject);
}

Fixed version (ground truth):
static public InstanceStateFileProcessor createNew(HashMap<String,InstanceState> st,File xmlFileObject) throws IOException {
  BufferedWriter writer=null;
  try {
    writer=new BufferedWriter(new FileWriter(xmlFileObject));
    writer.write("String_Node_Str");
    writer.newLine();
    writer.write("String_Node_Str");
    writer.newLine();
    writer.write("String_Node_Str");
    writer.newLine();
    for (    String s : st.keySet()) {
      writer.write("String_Node_Str" + s + "String_Node_Str"+ InstanceState.StateType.NO_RESPONSE.getDescription()+ "String_Node_Str");
      writer.newLine();
    }
    writer.write("String_Node_Str");
    writer.newLine();
    writer.flush();
  }
  finally {
    if (writer != null) {
      writer.close();
    }
  }
  return new InstanceStateFileProcessor(st,xmlFileObject);
}
Program: 29633
Project: 29633
Buggy source:
private void configureSSLSocket(SSLServerSocket sslSocket,SSLConfigurator sslConfigHolder){
  if (sslConfigHolder.getEnabledCipherSuites() != null) {
    if (enabledCipherSuites == null) {
synchronized (cipherSuitesSync) {
        if (enabledCipherSuites == null) {
          enabledCipherSuites=configureEnabledCiphers(sslSocket,sslConfigHolder.getEnabledCipherSuites());
        }
      }
    }
    sslSocket.setEnabledCipherSuites(enabledCipherSuites);
  }
  if (sslConfigHolder.getEnabledProtocols() != null) {
    if (enabledProtocols == null) {
synchronized (protocolsSync) {
        if (enabledProtocols == null) {
          enabledProtocols=configureEnabledProtocols(sslSocket,sslConfigHolder.getEnabledProtocols());
        }
      }
    }
    sslSocket.setEnabledProtocols(enabledProtocols);
  }
  sslSocket.setUseClientMode(sslConfigHolder.isClientMode());
}

Fixed version (ground truth):
private void configureSSLSocket(SSLServerSocket sslSocket,SSLConfigurator sslConfigHolder){
  if (sslConfigHolder.getEnabledCipherSuites() != null) {
    if (enabledCipherSuitesLock == null) {
synchronized (cipherSuitesSync) {
        if (enabledCipherSuitesLock == null) {
          enabledCipherSuitesLock=new Object();
          enabledCipherSuites=configureEnabledCiphers(sslSocket,sslConfigHolder.getEnabledCipherSuites());
        }
      }
    }
    sslSocket.setEnabledCipherSuites(enabledCipherSuites);
  }
  if (sslConfigHolder.getEnabledProtocols() != null) {
    if (enabledProtocolsLock == null) {
synchronized (protocolsSync) {
        if (enabledProtocolsLock == null) {
          enabledProtocolsLock=new Object();
          enabledProtocols=configureEnabledProtocols(sslSocket,sslConfigHolder.getEnabledProtocols());
        }
      }
    }
    sslSocket.setEnabledProtocols(enabledProtocols);
  }
  sslSocket.setUseClientMode(sslConfigHolder.isClientMode());
}
Program: 29634
Project: 29634
Buggy source:
/** 
 * Loads any currently active sessions that were previously unloaded to file
 * @exception ClassNotFoundException if a serialized class cannot befound during the reload
 * @exception IOException if a read error occurs
 */
private void doLoadFromFile() throws ClassNotFoundException, IOException {
  if (log.isLoggable(Level.FINE)) {
    log.fine("String_Node_Str");
  }
  File file=file();
  if (file == null || !file.exists() || file.length() == 0) {
    return;
  }
  if (log.isLoggable(Level.FINE)) {
    log.fine(sm.getString("String_Node_Str",pathname));
  }
  FileInputStream fis=null;
  try {
    fis=new FileInputStream(file.getAbsolutePath());
    readSessions(fis);
    if (log.isLoggable(Level.FINE)) {
      log.fine("String_Node_Str");
    }
  }
 catch (  FileNotFoundException e) {
    if (log.isLoggable(Level.FINE)) {
      log.fine("String_Node_Str");
    }
  }
 finally {
    try {
      if (fis != null) {
        fis.close();
      }
    }
 catch (    IOException f) {
    }
    if (!file.delete() && log.isLoggable(Level.FINE)) {
      log.fine("String_Node_Str" + file);
    }
  }
}

Fixed version (ground truth):
/** 
 * Loads any currently active sessions that were previously unloaded to file
 * @exception ClassNotFoundException if a serialized class cannot befound during the reload
 * @exception IOException if a read error occurs
 */
private void doLoadFromFile() throws ClassNotFoundException, IOException {
  if (log.isLoggable(Level.FINE)) {
    log.fine("String_Node_Str");
  }
  File file=file();
  if (file == null || !file.exists() || file.length() == 0) {
    return;
  }
  if (log.isLoggable(Level.FINE)) {
    log.fine(sm.getString("String_Node_Str",pathname));
  }
  FileInputStream fis=null;
  try {
    fis=new FileInputStream(file.getAbsolutePath());
    readSessions(fis);
    if (log.isLoggable(Level.FINE)) {
      log.fine("String_Node_Str");
    }
  }
 catch (  FileNotFoundException e) {
    if (log.isLoggable(Level.FINE)) {
      log.fine("String_Node_Str");
    }
  }
 finally {
    try {
      if (fis != null) {
        fis.close();
      }
    }
 catch (    IOException f) {
    }
    deleteFile(file);
  }
}
Program: 29635
Project: 29635
Buggy source:
public void clearStore(){
  File file=file();
  if (file != null && file.exists()) {
    file.delete();
  }
}

Fixed version (ground truth):
public void clearStore(){
  File file=file();
  if (file != null && file.exists()) {
    deleteFile(file);
  }
}
Program: 29636
Project: 29636
Buggy source:
/** 
 * Delete the specified directory, including all of its contents and sub-directories recursively.
 * @param dir File object representing the directory to be deleted
 * @param logFailure <code>true</code> if failure to delete the resourceshould be logged
 */
public static boolean deleteDir(File dir,boolean logFailure){
  String files[]=dir.list();
  if (files == null) {
    files=new String[0];
  }
  for (int i=0; i < files.length; i++) {
    File file=new File(dir,files[i]);
    if (file.isDirectory()) {
      deleteDir(file,logFailure);
    }
 else {
      file.delete();
    }
  }
  boolean result;
  if (dir.exists()) {
    result=dir.delete();
  }
 else {
    result=true;
  }
  if (logFailure && !result) {
    log.severe(sm.getString("String_Node_Str",dir.getAbsolutePath()));
  }
  return result;
}

Fixed version (ground truth):
/** 
 * Delete the specified directory, including all of its contents and sub-directories recursively.
 * @param dir File object representing the directory to be deleted
 * @param logFailure <code>true</code> if failure to delete the resourceshould be logged
 */
public static boolean deleteDir(File dir,boolean logFailure){
  String files[]=dir.list();
  if (files == null) {
    files=new String[0];
  }
  for (int i=0; i < files.length; i++) {
    File file=new File(dir,files[i]);
    if (file.isDirectory()) {
      deleteDir(file,logFailure);
    }
 else {
      if (!file.delete() && logFailure) {
        log.severe(sm.getString("String_Node_Str",file.getAbsolutePath()));
      }
    }
  }
  boolean result;
  if (dir.exists()) {
    result=dir.delete();
  }
 else {
    result=true;
  }
  if (logFailure && !result) {
    log.severe(sm.getString("String_Node_Str",dir.getAbsolutePath()));
  }
  return result;
}
Program: 29637
Project: 29637
Buggy source:
private boolean addAccessChecksFromAnno(final AccessRequired.Typed arTyped,final AdminCommand command,final List<AccessCheckWork> accessChecks,final boolean isTaggable){
  final Class<?> type=arTyped.type();
  return false;
}

Fixed version (ground truth):
private boolean addAccessChecksFromAnno(final AccessRequired.Typed arTyped,final AdminCommand command,final List<AccessCheckWork> accessChecks,final boolean isTaggable){
  return false;
}
Program: 29638
Project: 29638
Buggy source:
protected String getCanonicalHost(){
  if (canonicalHostCache == null) {
    try {
      InetAddress address=InetAddress.getByName(host);
      canonicalHostCache=address.getCanonicalHostName();
    }
 catch (    UnknownHostException ex) {
      canonicalHostCache=host;
      if (canonicalHostCache != null) {
        canonicalHostCache=canonicalHostCache.trim().toLowerCase();
      }
    }
  }
  return canonicalHostCache;
}

Fixed version (ground truth):
protected String getCanonicalHost(){
  if (canonicalHostCache == null) {
    try {
      InetAddress address=InetAddress.getByName(host);
      canonicalHostCache=address.getCanonicalHostName();
    }
 catch (    UnknownHostException ex) {
      canonicalHostCache=host;
      if (canonicalHostCache != null) {
        canonicalHostCache=canonicalHostCache.trim().toLowerCase(Locale.ENGLISH);
      }
    }
  }
  return canonicalHostCache;
}
Program: 29639
Project: 29639
Buggy source:
@Override public void initialize(Subject subject,CallbackHandler callbackHandler,Map<String,?> sharedState,Map<String,?> options){
  if (callbackHandler instanceof AdminCallbackHandler) {
    BaseServiceLocator sl=((AdminCallbackHandler)callbackHandler).getServiceLocator();
    findServices(sl);
  }
  this.subject=subject;
  this.callbackHandler=callbackHandler;
  this.sharedState=sharedState;
  this.options=options;
  authRealm=(String)options.get("String_Node_Str");
}

Fixed version (ground truth):
@Override public void initialize(Subject subject,CallbackHandler callbackHandler,Map<String,?> sharedState,Map<String,?> options){
  if (callbackHandler instanceof AdminCallbackHandler) {
    BaseServiceLocator sl=((AdminCallbackHandler)callbackHandler).getServiceLocator();
    findServices(sl);
  }
  this.subject=subject;
  this.callbackHandler=callbackHandler;
  authRealm=(String)options.get("String_Node_Str");
}
Program: 29640
Project: 29640
Buggy source:
public static String getFriendlyClassname(String type){
  String result=type;
  if (type.startsWith("String_Node_Str")) {
    int depth=0;
    while (type.charAt(depth) == (int)'[') {
      ++depth;
    }
    result=type.substring(depth,type.length());
    if (result.startsWith("String_Node_Str") && result.endsWith("String_Node_Str")) {
      result=result.substring(1,result.length() - 1);
    }
 else     if (result.length() == 1) {
switch (result.charAt(0)) {
case 'Z':
        result="String_Node_Str";
      break;
case 'B':
    result="String_Node_Str";
  break;
case 'C':
result="String_Node_Str";
break;
case 'S':
result="String_Node_Str";
break;
case 'I':
result="String_Node_Str";
break;
case 'J':
result="String_Node_Str";
break;
case 'F':
result="String_Node_Str";
break;
case 'D':
result="String_Node_Str";
break;
}
}
for (int i=0; i < depth; ++i) {
result=result + "String_Node_Str";
}
}
if (result.startsWith(javaLang)) {
result=result.substring(javaLang.length(),result.length());
}
return (result);
}

Fixed version (ground truth):
public static String getFriendlyClassname(String type){
  String result=type;
  if (type.startsWith("String_Node_Str")) {
    int depth=0;
    while (type.charAt(depth) == (int)'[') {
      ++depth;
    }
    result=type.substring(depth,type.length());
    if (result.startsWith("String_Node_Str") && result.endsWith("String_Node_Str")) {
      result=result.substring(1,result.length() - 1);
    }
 else     if (result.length() == 1) {
switch (result.charAt(0)) {
case 'Z':
        result="String_Node_Str";
      break;
case 'B':
    result="String_Node_Str";
  break;
case 'C':
result="String_Node_Str";
break;
case 'S':
result="String_Node_Str";
break;
case 'I':
result="String_Node_Str";
break;
case 'J':
result="String_Node_Str";
break;
case 'F':
result="String_Node_Str";
break;
case 'D':
result="String_Node_Str";
break;
default :
result="String_Node_Str";
break;
}
}
StringBuilder resultBuf=new StringBuilder(result);
for (int i=0; i < depth; ++i) {
resultBuf.append("String_Node_Str");
}
result=resultBuf.toString();
}
if (result.startsWith(javaLang)) {
result=result.substring(javaLang.length(),result.length());
}
return (result);
}
Program: 29641
Project: 29641
Buggy source:
public static Class getArrayElementClass(final Class arrayClass){
  final String arrayClassName=arrayClass.getName();
  if (!classnameIsArray(arrayClassName)) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  String name=arrayClassName;
  name=name.substring(1,name.length());
  if (!name.startsWith("String_Node_Str")) {
    if (name.startsWith("String_Node_Str")) {
      name=name.substring(1,name.length() - 1);
    }
 else     if (name.length() == 1) {
      name=PrimitiveLetterToClassName(name.charAt(0));
    }
  }
 else {
  }
  Class theClass=null;
  try {
    theClass=getClassFromName(name);
  }
 catch (  ClassNotFoundException e) {
    assert(false);
  }
  return (theClass);
}

Fixed version (ground truth):
public static Class getArrayElementClass(final Class arrayClass){
  final String arrayClassName=arrayClass.getName();
  if (!classnameIsArray(arrayClassName)) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  String name=arrayClassName;
  name=name.substring(1,name.length());
  if (!name.startsWith("String_Node_Str")) {
    if (name.startsWith("String_Node_Str")) {
      name=name.substring(1,name.length() - 1);
    }
 else     if (name.length() == 1) {
      name=primitiveLetterToClassName(name.charAt(0));
    }
  }
 else {
  }
  Class theClass=null;
  try {
    theClass=getClassFromName(name);
  }
 catch (  ClassNotFoundException e) {
    assert(false);
  }
  return (theClass);
}
Program: 29642
Project: 29642
Buggy source:
public static Class getClassFromName(final String classname) throws ClassNotFoundException {
  Class theClass=null;
  if (classname.startsWith("String_Node_Str")) {
    theClass=Class.forName(classname);
  }
 else {
    final int numMappings=Array.getLength(sPrimitiveNameToObjectClass);
    for (int i=0; i < numMappings; ++i) {
      if (sPrimitiveNameToObjectClass[i].mName.equals(classname)) {
        theClass=sPrimitiveNameToObjectClass[i].mClass;
        break;
      }
    }
    if (theClass == null) {
      theClass=theClass.forName(classname);
    }
  }
  return (theClass);
}

Fixed version (ground truth):
public static Class getClassFromName(final String classname) throws ClassNotFoundException {
  Class theClass=null;
  if (classname.startsWith("String_Node_Str")) {
    theClass=Class.forName(classname);
  }
 else {
    final int numMappings=Array.getLength(sPrimitiveNameToObjectClass);
    for (int i=0; i < numMappings; ++i) {
      if (sPrimitiveNameToObjectClass[i].mName.equals(classname)) {
        theClass=sPrimitiveNameToObjectClass[i].mClass;
        break;
      }
    }
    if (theClass == null) {
      theClass=Class.forName(classname);
    }
  }
  return (theClass);
}
Program: 29643
Project: 29643
Buggy source:
public Thread newThread(Runnable runnableObj){
  Thread t=new Thread(runnableObj);
  t.setDaemon(true);
  return t;
}

Fixed version (ground truth):
@Override public Thread newThread(Runnable runnableObj){
  Thread t=new Thread(runnableObj);
  t.setDaemon(true);
  return t;
}
Program: 29644
Project: 29644
Buggy source:
/** 
 * Open the new log file for the date specified by <code>date</code>.
 */
private void open(){
  File dir=new File(directory);
  if (!dir.isAbsolute())   dir=new File(System.getProperty("String_Node_Str"),directory);
  dir.mkdirs();
  try {
    String pathname=dir.getAbsolutePath() + File.separator + prefix+ date+ suffix;
    writer=new PrintWriter(new FileWriter(pathname,true),true);
  }
 catch (  IOException e) {
    writer=null;
  }
}

Fixed version (ground truth):
/** 
 * Open the new log file for the date specified by <code>date</code>.
 */
private void open(){
  File dir=new File(directory);
  if (!dir.isAbsolute())   dir=new File(System.getProperty("String_Node_Str"),directory);
  if (!dir.mkdirs()) {
  }
  try {
    String pathname=dir.getAbsolutePath() + File.separator + prefix+ date+ suffix;
    writer=new PrintWriter(new FileWriter(pathname,true),true);
  }
 catch (  IOException e) {
    writer=null;
  }
}
Program: 29645
Project: 29645
Buggy source:
/** 
 * Return a File object representing the pathname to our session persistence directory, if any.  The directory will be created if it does not already exist.
 */
private File directory(){
  if (this.directory == null) {
    return (null);
  }
  if (this.directoryFile != null) {
    return (this.directoryFile);
  }
  File file=new File(this.directory);
  if (!file.isAbsolute()) {
    Container container=manager.getContainer();
    if (container instanceof Context) {
      ServletContext servletContext=((Context)container).getServletContext();
      File work=(File)servletContext.getAttribute(ServletContext.TEMPDIR);
      file=new File(work,this.directory);
    }
 else {
      throw new IllegalArgumentException("String_Node_Str");
    }
  }
  if (!file.exists() || !file.isDirectory()) {
    file.delete();
    file.mkdirs();
  }
  this.directoryFile=file;
  return (file);
}

Fixed version (ground truth):
/** 
 * Return a File object representing the pathname to our session persistence directory, if any.  The directory will be created if it does not already exist.
 */
private File directory() throws IOException {
  if (this.directory == null) {
    return (null);
  }
  if (this.directoryFile != null) {
    return (this.directoryFile);
  }
  File file=new File(this.directory);
  if (!file.isAbsolute()) {
    Container container=manager.getContainer();
    if (container instanceof Context) {
      ServletContext servletContext=((Context)container).getServletContext();
      File work=(File)servletContext.getAttribute(ServletContext.TEMPDIR);
      file=new File(work,this.directory);
    }
 else {
      throw new IllegalArgumentException("String_Node_Str");
    }
  }
  if (!file.exists() || !file.isDirectory()) {
    if (!file.delete() && file.exists()) {
      throw new IOException(sm.getString("String_Node_Str",file));
    }
    if (!file.mkdirs() && !file.isDirectory()) {
      throw new IOException(sm.getString("String_Node_Str",file));
    }
  }
  this.directoryFile=file;
  return (file);
}
Program: 29646
Project: 29646
Buggy source:
/** 
 * Return a File object representing the pathname to our session persistence file, if any.
 * @param id The ID of the Session to be retrieved. This isused in the file naming.
 */
private File file(String id){
  if (this.directory == null) {
    return (null);
  }
  String filename=id + FILE_EXT;
  File file=new File(directory(),filename);
  return (file);
}

Fixed version (ground truth):
/** 
 * Return a File object representing the pathname to our session persistence file, if any.
 * @param id The ID of the Session to be retrieved. This isused in the file naming.
 */
private File file(String id) throws IOException {
  if (this.directory == null) {
    return (null);
  }
  String filename=id + FILE_EXT;
  File file=new File(directory(),filename);
  return (file);
}
Program: 29647
Project: 29647
Buggy source:
@Override protected Set<Class<?>> getResourceClasses(){
  final Set<Class<?>> r=new HashSet<Class<?>>();
  r.add(CommandResource.class);
  r.add(ParameterMapFormReader.class);
  r.add(ActionReportXmlProvider.class);
  r.add(ActionReportJsonProvider.class);
  r.add(ActionReportDtoJsonProvider.class);
  r.add(CommandModelHtmlProvider.class);
  r.add(CommandModelTxtProvider.class);
  r.add(CommandModelStaxProvider.class);
  r.add(ParameterMapFormReader.class);
  r.add(JsonParameterMapProvider.class);
  PayloadPartProvider inst=new PayloadPartProvider();
  r.add(PayloadPartProvider.class);
  return r;
}

Fixed version (ground truth):
@Override protected Set<Class<?>> getResourceClasses(){
  final Set<Class<?>> r=new HashSet<Class<?>>();
  r.add(CommandResource.class);
  r.add(ParameterMapFormReader.class);
  r.add(ActionReportXmlProvider.class);
  r.add(ActionReportJsonProvider.class);
  r.add(ActionReportDtoJsonProvider.class);
  r.add(CommandModelHtmlProvider.class);
  r.add(CommandModelTxtProvider.class);
  r.add(CommandModelStaxProvider.class);
  r.add(ParameterMapFormReader.class);
  r.add(JsonParameterMapProvider.class);
  r.add(PayloadPartProvider.class);
  return r;
}
Program: 29648
Project: 29648
Buggy source:
/** 
 * Default constructor
 */
public JdbcAdminServiceImpl(){
  super();
  jdbcAdminService=this;
  ccPoolAdmService=(ConnectorConnectionPoolAdminServiceImpl)ConnectorAdminServicesFactory.getService(ConnectorConstants.CCP);
}

Fixed version (ground truth):
/** 
 * Default constructor
 */
public JdbcAdminServiceImpl(){
  super();
  ccPoolAdmService=(ConnectorConnectionPoolAdminServiceImpl)ConnectorAdminServicesFactory.getService(ConnectorConstants.CCP);
}
Program: 29649
Project: 29649
Buggy source:
/** 
 * Return the MBean Names of all the defined resource links for this application
 */
public String[] getResourceLinks(){
  ContextResourceLink[] links=getNamingResources().findResourceLinks();
  List<String> results=new ArrayList<String>();
  for (  ContextResourceLink link : links) {
    try {
      ObjectName oname=MBeanUtils.createObjectName(this.getEngineName(),link);
      results.add(oname.toString());
    }
 catch (    MalformedObjectNameException e) {
      IllegalArgumentException iae=new IllegalArgumentException("String_Node_Str" + link);
      iae.initCause(e);
      throw iae;
    }
  }
  return results.toArray(new String[results.size()]);
}

Fixed version (ground truth):
/** 
 * Return the MBean Names of all the defined resource links for this application
 */
public String[] getResourceLinks(){
  ContextResourceLink[] links=getNamingResources().findResourceLinks();
  List<String> results=new ArrayList<String>();
  for (  ContextResourceLink link : links) {
    try {
      ObjectName oname=createObjectName(link);
      results.add(oname.toString());
    }
 catch (    MalformedObjectNameException e) {
      IllegalArgumentException iae=new IllegalArgumentException("String_Node_Str" + link);
      iae.initCause(e);
      throw iae;
    }
  }
  return results.toArray(new String[results.size()]);
}
Program: 29650
Project: 29650
Buggy source:
/** 
 * Add a resource reference for this web application.
 * @param resourceName New resource reference name
 */
public String addResource(String resourceName,String type) throws MalformedObjectNameException {
  NamingResources nresources=getNamingResources();
  if (nresources == null) {
    return null;
  }
  ContextResource resource=nresources.findResource(resourceName);
  if (resource != null) {
    throw new IllegalArgumentException("String_Node_Str" + resourceName + "String_Node_Str");
  }
  resource=new ContextResource();
  resource.setName(resourceName);
  resource.setType(type);
  nresources.addResource(resource);
  MBeanUtils.createObjectName(domain,resource);
  return (oname.toString());
}

Fixed version (ground truth):
/** 
 * Add a resource reference for this web application.
 * @param resourceName New resource reference name
 */
public String addResource(String resourceName,String type) throws MalformedObjectNameException {
  NamingResources nresources=getNamingResources();
  if (nresources == null) {
    return null;
  }
  ContextResource resource=nresources.findResource(resourceName);
  if (resource != null) {
    throw new IllegalArgumentException("String_Node_Str" + resourceName + "String_Node_Str");
  }
  resource=new ContextResource();
  resource.setName(resourceName);
  resource.setType(type);
  nresources.addResource(resource);
  return createObjectName(resource).toString();
}
Program: 29651
Project: 29651
Buggy source:
/** 
 * Add a resource link for this web application.
 * @param resourceLinkName New resource link name
 */
public String addResourceLink(String resourceLinkName,String global,String name,String type) throws MalformedObjectNameException {
  NamingResources nresources=getNamingResources();
  if (nresources == null) {
    return null;
  }
  ContextResourceLink resourceLink=nresources.findResourceLink(resourceLinkName);
  if (resourceLink != null) {
    throw new IllegalArgumentException("String_Node_Str" + resourceLinkName + "String_Node_Str");
  }
  resourceLink=new ContextResourceLink();
  resourceLink.setGlobal(global);
  resourceLink.setName(resourceLinkName);
  resourceLink.setType(type);
  nresources.addResourceLink(resourceLink);
  ObjectName oname=MBeanUtils.createObjectName(domain,resourceLink);
  return (oname.toString());
}

Fixed version (ground truth):
/** 
 * Add a resource link for this web application.
 * @param resourceLinkName New resource link name
 */
public String addResourceLink(String resourceLinkName,String global,String name,String type) throws MalformedObjectNameException {
  NamingResources nresources=getNamingResources();
  if (nresources == null) {
    return null;
  }
  ContextResourceLink resourceLink=nresources.findResourceLink(resourceLinkName);
  if (resourceLink != null) {
    throw new IllegalArgumentException("String_Node_Str" + resourceLinkName + "String_Node_Str");
  }
  resourceLink=new ContextResourceLink();
  resourceLink.setGlobal(global);
  resourceLink.setName(resourceLinkName);
  resourceLink.setType(type);
  nresources.addResourceLink(resourceLink);
  return createObjectName(resourceLink).toString();
}
Program: 29652
Project: 29652
Buggy source:
@Override public ObjectName createObjectName(String hostDomain,ObjectName parentName) throws MalformedObjectNameException {
  String onameStr;
  StandardHost hst=(StandardHost)getParent();
  String hostName=getParent().getName();
  String name="String_Node_Str" + ((hostName == null) ? "String_Node_Str" : hostName) + (("String_Node_Str".equals(encodedPath)) ? "String_Node_Str" : encodedPath);
  String suffix="String_Node_Str" + getJ2EEApplication() + "String_Node_Str"+ getJ2EEServer();
  onameStr="String_Node_Str" + name + suffix;
  if (log.isLoggable(Level.FINE))   log.fine("String_Node_Str" + onameStr + "String_Node_Str"+ oname);
  if (getDomain() == null)   domain=hst.getDomain();
  return new ObjectName(getDomain() + "String_Node_Str" + onameStr);
}

Fixed version (ground truth):
/** 
 * Create an <code>ObjectName</code> for <code>ContextResourceLink</code> object.
 * @param resourceLink The ContextResourceLink to be named
 * @exception MalformedObjectNameException if a name cannot be created
 */
public ObjectName createObjectName(ContextResourceLink resourceLink) throws MalformedObjectNameException {
  ObjectName name=null;
  String encodedResourceLinkName=urlEncoder.encode(resourceLink.getName());
  Object container=resourceLink.getNamingResources().getContainer();
  if (container instanceof Server) {
    name=new ObjectName(domain + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ encodedResourceLinkName);
  }
 else   if (container instanceof Context) {
    String path=((Context)container).getPath();
    if (path.length() < 1)     path="String_Node_Str";
    Host host=(Host)((Context)container).getParent();
    name=new ObjectName(domain + "String_Node_Str" + "String_Node_Str"+ path+ "String_Node_Str"+ host.getName()+ "String_Node_Str"+ encodedResourceLinkName);
  }
  return (name);
}
Program: 29653
Project: 29653
Buggy source:
/** 
 * Return the MBean Names of all the defined resource references for this application.
 */
public String[] getResourceNames(){
  ContextResource[] resources=getNamingResources().findResources();
  List<String> results=new ArrayList<String>();
  for (  ContextResource resource : resources) {
    try {
      ObjectName oname=MBeanUtils.createObjectName(this.getEngineName(),resource);
      results.add(oname.toString());
    }
 catch (    MalformedObjectNameException e) {
      IllegalArgumentException iae=new IllegalArgumentException("String_Node_Str" + resource);
      iae.initCause(e);
      throw iae;
    }
  }
  return results.toArray(new String[results.size()]);
}

Fixed version (ground truth):
/** 
 * Return the MBean Names of all the defined resource references for this application.
 */
public String[] getResourceNames(){
  ContextResource[] resources=getNamingResources().findResources();
  List<String> results=new ArrayList<String>();
  for (  ContextResource resource : resources) {
    try {
      ObjectName oname=createObjectName(resource);
      results.add(oname.toString());
    }
 catch (    MalformedObjectNameException e) {
      IllegalArgumentException iae=new IllegalArgumentException("String_Node_Str" + resource);
      iae.initCause(e);
      throw iae;
    }
  }
  return results.toArray(new String[results.size()]);
}
Program: 29654
Project: 29654
Buggy source:
/** 
 * Return the MBean Names of the set of defined environment entries for this web application
 */
public String[] getEnvironments(){
  ContextEnvironment[] envs=getNamingResources().findEnvironments();
  List<String> results=new ArrayList<String>();
  for (  ContextEnvironment env : envs) {
    try {
      ObjectName oname=MBeanUtils.createObjectName(this.getEngineName(),env);
      results.add(oname.toString());
    }
 catch (    MalformedObjectNameException e) {
      IllegalArgumentException iae=new IllegalArgumentException("String_Node_Str" + env);
      iae.initCause(e);
      throw iae;
    }
  }
  return results.toArray(new String[results.size()]);
}

Fixed version (ground truth):
/** 
 * Return the MBean Names of the set of defined environment entries for this web application
 */
public String[] getEnvironments(){
  ContextEnvironment[] envs=getNamingResources().findEnvironments();
  List<String> results=new ArrayList<String>();
  for (  ContextEnvironment env : envs) {
    try {
      ObjectName oname=createObjectName(env);
      results.add(oname.toString());
    }
 catch (    MalformedObjectNameException e) {
      IllegalArgumentException iae=new IllegalArgumentException("String_Node_Str" + env);
      iae.initCause(e);
      throw iae;
    }
  }
  return results.toArray(new String[results.size()]);
}
Program: 29655
Project: 29655
Buggy source:
/** 
 * Add an environment entry for this web application.
 * @param envName New environment entry name
 */
public String addEnvironment(String envName,String type) throws MalformedObjectNameException {
  NamingResources nresources=getNamingResources();
  if (nresources == null) {
    return null;
  }
  ContextEnvironment env=nresources.findEnvironment(envName);
  if (env != null) {
    throw new IllegalArgumentException("String_Node_Str" + envName + "String_Node_Str");
  }
  env=new ContextEnvironment();
  env.setName(envName);
  env.setType(type);
  nresources.addEnvironment(env);
  ObjectName oname=MBeanUtils.createObjectName(domain,env);
  return (oname.toString());
}

Fixed version (ground truth):
/** 
 * Add an environment entry for this web application.
 * @param envName New environment entry name
 */
public String addEnvironment(String envName,String type) throws MalformedObjectNameException {
  NamingResources nresources=getNamingResources();
  if (nresources == null) {
    return null;
  }
  ContextEnvironment env=nresources.findEnvironment(envName);
  if (env != null) {
    throw new IllegalArgumentException("String_Node_Str" + envName + "String_Node_Str");
  }
  env=new ContextEnvironment();
  env.setName(envName);
  env.setType(type);
  nresources.addEnvironment(env);
  return createObjectName(env).toString();
}
Program: 29656
Project: 29656
Buggy source:
public <T>T get(String key) throws InsufficientCredentialException {
  Entry entry=simpleMap.getEntry(key);
  if (entry == null) {
    if (contextAccessController.isAccessAllowed(key,ContextAccessLevel.READ)) {
      return null;
    }
  }
 else {
    if (entry != null && (entry.allowAllToRead || contextAccessController.isAccessAllowed(key,ContextAccessLevel.READ))) {
      return entry.getValue();
    }
  }
  throw new InsufficientCredentialException();
}

Fixed version (ground truth):
public <T>T get(String key) throws InsufficientCredentialException {
  Entry entry=simpleMap.getEntry(key);
  if (entry == null) {
    if (contextAccessController.isAccessAllowed(key,ContextAccessLevel.READ)) {
      return null;
    }
  }
 else {
    if (entry != null && (entry.allowAllToRead || contextAccessController.isAccessAllowed(key,ContextAccessLevel.READ))) {
      return (T)entry.getValue();
    }
  }
  throw new InsufficientCredentialException();
}
Program: 29657
Project: 29657
Buggy source:
@SuppressWarnings("String_Node_Str") public <T>T put(String key,Entry entry){
  validate(key,entry);
  T value=entry.getValue();
  Entry oldEntry=map.put(key,entry);
  if (oldEntry != null && (oldEntry.getValue() instanceof ContextLifecycle)) {
    ((ContextLifecycle)oldEntry.value).contextChanged(value);
  }
  if (entry.getValue() instanceof ContextLifecycle) {
    ContextLifecycle ctx=(ContextLifecycle)entry.getValue();
    if (addedContexts == null) {
      ctx.contextAdded();
    }
 else {
      addedContexts.add(ctx);
    }
  }
  if (logger.isLoggable(Level.DEBUG)) {
    logger.log(Level.DEBUG,MessageID.PUT,key,value,oldEntry == null ? null : oldEntry.value);
  }
  return (T)(oldEntry == null ? null : oldEntry.value);
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public <T>T put(String key,Entry entry){
  validate(key,entry);
  T value=(T)entry.getValue();
  Entry oldEntry=map.put(key,entry);
  if (oldEntry != null && (oldEntry.getValue() instanceof ContextLifecycle)) {
    ((ContextLifecycle)oldEntry.value).contextChanged(value);
  }
  if (entry.getValue() instanceof ContextLifecycle) {
    ContextLifecycle ctx=(ContextLifecycle)entry.getValue();
    if (addedContexts == null) {
      ctx.contextAdded();
    }
 else {
      addedContexts.add(ctx);
    }
  }
  if (logger.isLoggable(Level.DEBUG)) {
    logger.log(Level.DEBUG,MessageID.PUT,key,value,oldEntry == null ? null : oldEntry.value);
  }
  return (T)(oldEntry == null ? null : oldEntry.value);
}
Program: 29658
Project: 29658
Buggy source:
public <T>T get(String key){
  return extractResult(key,getEntry(key),"String_Node_Str");
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public <T>T get(String key){
  return (T)extractResult(key,getEntry(key),"String_Node_Str");
}
Program: 29659
Project: 29659
Buggy source:
@Override public <T>T put(String name,Character context,EnumSet<PropagationMode> propagationModes) throws InsufficientCredentialException {
  return mapFinder.getMapAndCreateIfNeeded().put(name,new Entry(context,propagationModes,Entry.ContextType.BYTE));
}

Fixed version (ground truth):
@Override public <T>T put(String name,Character context,EnumSet<PropagationMode> propagationModes) throws InsufficientCredentialException {
  return (T)mapFinder.getMapAndCreateIfNeeded().put(name,new Entry(context,propagationModes,Entry.ContextType.BYTE));
}
Program: 29660
Project: 29660
Buggy source:
public <T>T putSerializable(String name,Serializable context,EnumSet<PropagationMode> propagationModes,boolean allowAllToRead){
  return sMap.put(newKey(name),new Entry(context,propagationModes,ContextType.SERIALIZABLE).init(true,allowAllToRead));
}

Fixed version (ground truth):
public <T>T putSerializable(String name,Serializable context,EnumSet<PropagationMode> propagationModes,boolean allowAllToRead){
  return (T)sMap.put(newKey(name),new Entry(context,propagationModes,ContextType.SERIALIZABLE).init(true,allowAllToRead));
}
Program: 29661
Project: 29661
Buggy source:
@Override public <T>T get(String name){
  return sMap.get(makeKey(name));
}

Fixed version (ground truth):
@Override public <T>T get(String name){
  return (T)sMap.get(makeKey(name));
}
Program: 29662
Project: 29662
Buggy source:
@Override public <T>T put(String name,Character context,EnumSet<PropagationMode> propagationModes){
  return sMap.put(newKey(name),new Entry(context,propagationModes,ContextType.CHAR).init(true,allowAllToRead(name)));
}

Fixed version (ground truth):
@Override public <T>T put(String name,Character context,EnumSet<PropagationMode> propagationModes){
  return (T)sMap.put(newKey(name),new Entry(context,propagationModes,ContextType.CHAR).init(true,allowAllToRead(name)));
}
Program: 29663
Project: 29663
Buggy source:
@Override public <T>T remove(String name){
  names.remove(name);
  return sMap.remove(makeKey(name));
}

Fixed version (ground truth):
@Override public <T>T remove(String name){
  names.remove(name);
  return (T)sMap.remove(makeKey(name));
}
Program: 29664
Project: 29664
Buggy source:
public ThreadPoolStatsImpl(ThreadPool threadPool) throws NoSuchWorkQueueException {
  this.threadPool=threadPool;
  this.threadPoolName=threadPool.getName();
  getWorkQueueForThreadPool();
  initializeStats();
}

Fixed version (ground truth):
public ThreadPoolStatsImpl(ThreadPool threadPool) throws NoSuchWorkQueueException {
  this.threadPool=threadPool;
  getWorkQueueForThreadPool();
  initializeStats();
}
Program: 29665
Project: 29665
Buggy source:
@Override public void init() throws Exception {
  if (this.getParent() == null) {
    ObjectName parentName=getParentName();
    ContextConfig config=new ContextConfig();
    this.addLifecycleListener(config);
  }
  if (initialized) {
    return;
  }
  super.init();
  lifecycle.fireLifecycleEvent(INIT_EVENT,null);
  if (this.getObjectName() != null) {
    Notification notification=new Notification("String_Node_Str",this,sequenceNumber++);
    sendNotification(notification);
  }
}

Fixed version (ground truth):
@Override public void init() throws Exception {
  if (this.getParent() == null) {
    ContextConfig config=new ContextConfig();
    this.addLifecycleListener(config);
  }
  if (initialized) {
    return;
  }
  super.init();
  lifecycle.fireLifecycleEvent(INIT_EVENT,null);
  if (this.getObjectName() != null) {
    Notification notification=new Notification("String_Node_Str",this,sequenceNumber++);
    sendNotification(notification);
  }
}
Program: 29666
Project: 29666
Buggy source:
public boolean touchStore(){
  if (cookieStoreFile.lastModified() + CACHE_WRITE_DELTA > System.currentTimeMillis()) {
    return false;
  }
  boolean ignore=cookieStoreFile.setLastModified(System.currentTimeMillis());
  return true;
}

Fixed version (ground truth):
public boolean touchStore(){
  if (cookieStoreFile.lastModified() + CACHE_WRITE_DELTA > System.currentTimeMillis()) {
    return false;
  }
  return (cookieStoreFile.setLastModified(System.currentTimeMillis()));
}
Program: 29667
Project: 29667
Buggy source:
/** 
 * Copy directory.
 */
private boolean copyDir(DirContext srcDir,File destDir){
  try {
    NamingEnumeration<NameClassPair> enumeration=srcDir.list("String_Node_Str");
    while (enumeration.hasMoreElements()) {
      NameClassPair ncPair=enumeration.nextElement();
      String name=ncPair.getName();
      Object object=srcDir.lookup(name);
      File currentFile=new File(destDir,name);
      if (object instanceof Resource) {
        InputStream is=((Resource)object).streamContent();
        OutputStream os=new FileOutputStream(currentFile);
        if (!copy(is,os))         return false;
      }
 else       if (object instanceof InputStream) {
        OutputStream os=new FileOutputStream(currentFile);
        if (!copy((InputStream)object,os))         return false;
      }
 else       if (object instanceof DirContext) {
        currentFile.mkdir();
        copyDir((DirContext)object,currentFile);
      }
    }
  }
 catch (  NamingException e) {
    return false;
  }
catch (  IOException e) {
    return false;
  }
  return true;
}

Fixed version (ground truth):
/** 
 * Copy directory.
 */
private boolean copyDir(DirContext srcDir,File destDir){
  try {
    NamingEnumeration<NameClassPair> enumeration=srcDir.list("String_Node_Str");
    while (enumeration.hasMoreElements()) {
      NameClassPair ncPair=enumeration.nextElement();
      String name=ncPair.getName();
      Object object=srcDir.lookup(name);
      File currentFile=new File(destDir,name);
      if (object instanceof Resource) {
        InputStream is=((Resource)object).streamContent();
        OutputStream os=new FileOutputStream(currentFile);
        if (!copy(is,os))         return false;
      }
 else       if (object instanceof InputStream) {
        OutputStream os=new FileOutputStream(currentFile);
        if (!copy((InputStream)object,os))         return false;
      }
 else       if (object instanceof DirContext) {
        if (!currentFile.isDirectory() && !currentFile.mkdir())         return false;
        if (!copyDir((DirContext)object,currentFile))         return false;
      }
    }
  }
 catch (  NamingException e) {
    return false;
  }
catch (  IOException e) {
    return false;
  }
  return true;
}
Program: 29669
Project: 29669
Buggy source:
/** 
 * Open the new log file for the date specified by <code>dateStamp</code>.
 */
private synchronized void open(){
  File dir=new File(directory);
  if (!dir.isAbsolute())   dir=new File(System.getProperty("String_Node_Str"),directory);
  dir.mkdirs();
  try {
    String pathname;
    if (rotatable) {
      pathname=dir.getAbsolutePath() + File.separator + prefix+ dateStamp+ suffix;
    }
 else {
      pathname=dir.getAbsolutePath() + File.separator + prefix+ suffix;
    }
    writer=new PrintWriter(new FileWriter(pathname,true),true);
  }
 catch (  IOException e) {
    writer=null;
  }
}

Fixed version (ground truth):
/** 
 * Open the new log file for the date specified by <code>dateStamp</code>.
 */
private synchronized void open(){
  File dir=new File(directory);
  if (!dir.isAbsolute())   dir=new File(System.getProperty("String_Node_Str"),directory);
  if (!dir.mkdirs() && !dir.isDirectory()) {
    log.log(Level.SEVERE,sm.getString("String_Node_Str",dir));
  }
  try {
    String pathname;
    if (rotatable) {
      pathname=dir.getAbsolutePath() + File.separator + prefix+ dateStamp+ suffix;
    }
 else {
      pathname=dir.getAbsolutePath() + File.separator + prefix+ suffix;
    }
    writer=new PrintWriter(new FileWriter(pathname,true),true);
  }
 catch (  IOException e) {
    writer=null;
  }
}
Program: 29670
Project: 29670
Buggy source:
/** 
 * Open the new log file for the date specified by <code>dateStamp</code>.
 */
private synchronized void open(){
  File dir=new File(directory);
  if (!dir.isAbsolute())   dir=new File(System.getProperty("String_Node_Str"),directory);
  dir.mkdirs();
  try {
    String pathname;
    if (rotatable) {
      pathname=dir.getAbsolutePath() + File.separator + prefix+ dateStamp+ suffix;
    }
 else {
      pathname=dir.getAbsolutePath() + File.separator + prefix+ suffix;
    }
    currentLogFile=new File(pathname);
    writer=new PrintWriter(new FileWriter(pathname,true),true);
    if (currentLogFile.length() == 0) {
      writer.println("String_Node_Str" + pattern);
      writer.println("String_Node_Str");
      writer.println("String_Node_Str" + ServerInfo.getServerInfo());
    }
  }
 catch (  IOException e) {
    writer=null;
    currentLogFile=null;
  }
}

Fixed version (ground truth):
/** 
 * Open the new log file for the date specified by <code>dateStamp</code>.
 */
private synchronized void open(){
  File dir=new File(directory);
  if (!dir.isAbsolute())   dir=new File(System.getProperty("String_Node_Str"),directory);
  if (!dir.mkdirs() && !dir.isDirectory()) {
    log.log(Level.SEVERE,sm.getString("String_Node_Str",dir));
  }
  try {
    String pathname;
    if (rotatable) {
      pathname=dir.getAbsolutePath() + File.separator + prefix+ dateStamp+ suffix;
    }
 else {
      pathname=dir.getAbsolutePath() + File.separator + prefix+ suffix;
    }
    currentLogFile=new File(pathname);
    writer=new PrintWriter(new FileWriter(pathname,true),true);
    if (currentLogFile.length() == 0) {
      writer.println("String_Node_Str" + pattern);
      writer.println("String_Node_Str");
      writer.println("String_Node_Str" + ServerInfo.getServerInfo());
    }
  }
 catch (  IOException e) {
    writer=null;
    currentLogFile=null;
  }
}
Program: 29671
Project: 29671
Buggy source:
private void deleteAdminObjectResource(AdminObjectResource adminObject,ResourceInfo resourceInfo) throws ConnectorRuntimeException {
  if (ResourcesUtil.createInstance().isEnabled(adminObject,resourceInfo)) {
    if (_logger.isLoggable(Level.FINE)) {
      _logger.log(Level.FINE,"String_Node_Str",resourceInfo);
    }
    runtime.deleteAdminObject(resourceInfo);
    if (_logger.isLoggable(Level.FINE)) {
      _logger.log(Level.FINE,"String_Node_Str",resourceInfo);
    }
  }
 else {
    _logger.log(Level.FINEST,"String_Node_Str",new Object[]{adminObject.getJndiName(),ConnectorConstants.RES_TYPE_AOR});
  }
}

Fixed version (ground truth):
private void deleteAdminObjectResource(AdminObjectResource adminObject,ResourceInfo resourceInfo) throws ConnectorRuntimeException {
  if (_logger.isLoggable(Level.FINE)) {
    _logger.log(Level.FINE,"String_Node_Str",resourceInfo);
  }
  runtime.deleteAdminObject(resourceInfo);
  if (_logger.isLoggable(Level.FINE)) {
    _logger.log(Level.FINE,"String_Node_Str",resourceInfo);
  }
}
Program: 29672
Project: 29672
Buggy source:
private void createAdminObjectResource(AdminObjectResource aor,ResourceInfo resourceInfo) throws ConnectorRuntimeException {
  if (ResourcesUtil.createInstance().isEnabled(aor,resourceInfo)) {
    if (_logger.isLoggable(Level.FINE)) {
      _logger.log(Level.FINE,"String_Node_Str",resourceInfo);
    }
    runtime.addAdminObject(null,aor.getResAdapter(),resourceInfo,aor.getResType(),aor.getClassName(),transformProps(aor.getProperty()));
    if (_logger.isLoggable(Level.FINE)) {
      _logger.log(Level.FINE,"String_Node_Str",resourceInfo);
    }
  }
 else {
    _logger.log(Level.INFO,"String_Node_Str",new Object[]{aor.getJndiName(),ConnectorConstants.RES_TYPE_AOR});
  }
}

Fixed version (ground truth):
private void createAdminObjectResource(AdminObjectResource aor,ResourceInfo resourceInfo) throws ConnectorRuntimeException {
  if (_logger.isLoggable(Level.FINE)) {
    _logger.log(Level.FINE,"String_Node_Str",resourceInfo);
  }
  runtime.addAdminObject(null,aor.getResAdapter(),resourceInfo,aor.getResType(),aor.getClassName(),transformProps(aor.getProperty()));
  if (_logger.isLoggable(Level.FINE)) {
    _logger.log(Level.FINE,"String_Node_Str",resourceInfo);
  }
}