final String [] operands = getOperands();
if ( operands.length != 1 )
{
final String msg = "Exactly one name must be specified";
printError( msg );
throw new IllegalArgumentException( msg );
}
final String name = operands[ operands.length - 1 ];
final String theClass = getString( "class", null );
if ( theClass == null || theClass.length() == 0 )
{
final String msg = "Illegal classname";
printError( msg );
throw new IllegalArgumentException( msg );
}
final String args = getString( "args", null );
try
{
establishProxy();
getProxy().mbeanCreate( name, theClass, args );
}
catch( Exception e )
{
dm( e.getMessage() );
e.printStackTrace();
}