public String removeMetadataOption(String name){
  ReplOption existingOption=null;
  for (  ReplOption replOption : metadata) {
    if (name.equals(replOption.getOptionName()))     existingOption=replOption;
  }
  if (existingOption != null) {
    metadata.remove(existingOption);
    return existingOption.getOptionValue();
  }
  return null;
}

public String removeMetadataOption ( String name ) { ReplOption existingOption = null ; for ( ReplOption replOption : metadata ) { if ( name . equals ( replOption . getOptionName ( ) ) ) existingOption = replOption ; } if ( existingOption != null ) { metadata . remove ( existingOption ) ; return existingOption . getOptionValue ( ) ; } return null ; }
removes an existing metadata option if it exists and returns the value .
