public void process(final WriteableCommandLine commandLine,
final ListIterator arguments) throws OptionException {
final String arg = (String) arguments.next();
if (!canProcess(commandLine, arg)) {
throw new OptionException(this,
ResourceConstants.UNEXPECTED_TOKEN, arg);
}
ArrayList properties = new ArrayList();
String next = "";
while(arguments.hasNext()){
next = (String) arguments.next();
if (!next.startsWith("-")){
if(next.indexOf("=") == -1) {
throw new OptionException(this, ResourceConstants.UNEXPECTED_TOKEN,
"argument: '" + next + "' is not of the form x=y");
}
properties.add(next);
}else{
arguments.previous();