container/profiles/src/main/java/org/mobicents/slee/container/deployment/profile/ClassGeneratorUtils.java
public static void createInterfaceLinks(CtClass concreteClass, String[] interfaceNames)
  {
    if(interfaceNames != null && interfaceNames.length > 0)
    {
      try
      {
        for(String interfaceName : interfaceNames)
        {
          boolean found = false;
          for(CtClass existingInterfaces : concreteClass.getInterfaces())
          {
            if(existingInterfaces.getName().equals(interfaceName))
              found = true;
          }
          
          if(!found)
            concreteClass.addInterface(classPool.get(interfaceName));
        }
      }
      catch ( NotFoundException e ) {
        e.printStackTrace();
      }
    }
  }
public static void createInterfaceLinks(CtClass concreteClass, String[] interfaceNames)
  {
    if(interfaceNames != null && interfaceNames.length > 0)
    {
      try
      {
        for(String interfaceName : interfaceNames)
        {
          boolean found = false;
          for(CtClass existingInterfaces : concreteClass.getInterfaces())
          {
            if(existingInterfaces.getName().equals(interfaceName))
              found = true;
          }
          
          if(!found)
            concreteClass.addInterface(classPool.get(interfaceName));
        }
      }
      catch ( NotFoundException e ) {
        e.printStackTrace();
      }
    }
  }
public static void createInterfaceLinks ( CtClass concreteClass , String [ ] interfaceNames ) { if ( interfaceNames != null && interfaceNames . length > 0 ) { try { for ( String interfaceName : interfaceNames ) { boolean found = false ; for ( CtClass existingInterfaces : concreteClass . getInterfaces ( ) ) { if ( existingInterfaces . getName ( ) . equals ( interfaceName ) ) found = true ; } if ( ! found ) concreteClass . addInterface ( classPool . get ( interfaceName ) ) ; } } catch ( NotFoundException e ) { e . printStackTrace ( ) ; } } }
Create the links with possible interfaces

@param concreteClass
@param interfaces
Create the links with possible interfaces