ProcessFactory pf = Processors.createProcessFactory(name);
if ( pf == null ) {
throw new WPSException( "No such process: " + id.getValue() );
}
ProcessDescriptionType pd = wpsf.createProcessDescriptionType();
pds.getProcessDescription().add( pd );
pd.setProcessVersion( "1.0.0" );
pd.setIdentifier( Ows11Util.code( id.getValue() ) );
pd.setTitle( Ows11Util.languageString(pf.getTitle(name)) );
pd.setAbstract( Ows11Util.languageString(pf.getDescription(name)) );
//data inputs
DataInputsType inputs = wpsf.createDataInputsType();
pd.setDataInputs(inputs);
dataInputs( inputs, pf, name );
//process outputs
ProcessOutputsType outputs = wpsf.createProcessOutputsType();
pd.setProcessOutputs( outputs );
processOutputs( outputs, pf, name );
}