{
String []trailingArgs = args.getTrailingArgs(options);
String pattern = args.getArg("-pattern");
if (pattern == null)
throw new ConfigException(L.l("jmx-call must specify -pattern"));
try {
ObjectName.getInstance(pattern);
} catch (MalformedObjectNameException e) {
throw new ConfigException(L.l("incorrect pattern `{0}' :`{`}'",
pattern,
e.getMessage()));
}
String operation = args.getArg("-operation");
if (operation == null)
throw new ConfigException(L.l("jmx-call must specify -operation"));
int operationIndex = -1;
if (operation.contains(":")) {
int i = operation.indexOf(':');
String name = operation.substring(0, i);