code: private Object[] createTargetArray(OpenType pElementType, int pLength) {
          if (pElementType instanceof SimpleType) {
              try {
                  SimpleType simpleType = (SimpleType) pElementType;
  			    Class elementClass = Class.forName(simpleType.getClassName());
                  return (Object[]) Array.newInstance(elementClass, pLength);
  
              } catch (ClassNotFoundException e) {
                  throw new IllegalArgumentException("Can't find class " + pElementType.getClassName() +
                                                     " for instantiating array: " + e.getMessage(),e);
              }
          } else if (pElementType instanceof CompositeType) {
              return new CompositeData[pLength];
  		} else {
  			throw new UnsupportedOperationException("Unsupported array element type: " + pElementType);
  		}
      }
docs: =======================================================================