public RequestTypeWithOptions typeCheck(Object value) throws DmcValueException {
if (value instanceof RequestTypeWithOptions)
return((RequestTypeWithOptions)value);
if (value instanceof String)
return(new RequestTypeWithOptions((String)value));
throw(new DmcValueException("Object of class: " + value.getClass().getName() + " passed where object compatible with RequestTypeWithOptions or String expected."));
}