public ObjectInstance(ObjectName objectName,String className){
  if (objectName.isPattern()) {
    final IllegalArgumentException iae=new IllegalArgumentException("Invalid name->" + objectName.toString());
    throw new RuntimeOperationsException(iae);
  }
  this.name=objectName;
  this.className=className;
}

public ObjectInstance ( ObjectName objectName , String className ) { if ( objectName . isPattern ( ) ) { final IllegalArgumentException iae = new IllegalArgumentException ( "Invalid name->" + objectName . toString ( ) ) ; throw new RuntimeOperationsException ( iae ) ; } this . name = objectName ; this . className = className ; }
allows an object instance to be created given an object name and the full class name , including the package name .
