code: @SuppressWarnings("unchecked")
      public static Object getClassInstance(String className,
                                            Class[] attrTypes,
                                            Object[] attrValues) throws DISIException {
  
          Constructor constr;
          try {
              Class cl = Class.forName(className);
              constr = cl.getConstructor(attrTypes);
          } catch (ClassNotFoundException e) {
              //yep, log and throw...
              final String errMessage = e.getClass().getSimpleName() + ": " + e.getMessage();
              log.error(errMessage, e);
              throw new DISIException(errMessage, e);
          } catch (NoSuchMethodException e) {
              final String errMessage = e.getClass().getSimpleName() + ": " + e.getMessage();
              log.error(errMessage, e);
              throw new DISIException(errMessage, e);
          }
  
          Object classInst;
  
          try {
              classInst = constr.newInstance(attrValues);
          } catch (InstantiationException e) {
              final String errMessage = e.getClass().getSimpleName() + ": " + e.getMessage();
              log.error(errMessage, e);
              throw new DISIException(errMessage, e);
          } catch (IllegalAccessException e) {
              final String errMessage = e.getClass().getSimpleName() + ": " + e.getMessage();
              log.error(errMessage, e);
              throw new DISIException(errMessage, e);
          } catch (InvocationTargetException e) {
              final String errMessage = e.getClass().getSimpleName() + ": " + e.getMessage();
              log.error(errMessage, e);
              throw new DISIException(errMessage, e);
          }
          return classInst;
      }
docs: Creates an instance of the class whose name is passed as the parameter.
  
  @param className  name of the class those instance is to be created
  @param attrTypes  attrTypes
  @param attrValues attrValues
  @return instance of the class
  @throws DISIException DISIException