//TODO: make configurable
caps.setLang( "en" );
//ServiceIdentification
ServiceIdentificationType si = owsf.createServiceIdentificationType();
caps.setServiceIdentification( si );
si.getTitle().add( Ows11Util.languageString( wps.getTitle() ) );
si.getAbstract().add( Ows11Util.languageString( wps.getAbstract() ) );
KeywordsType kw = Ows11Util.keywords( wps.getKeywords( ) ); ;
if ( kw != null ) {
si.getKeywords().add( kw );
}
si.setServiceType( Ows11Util.code( "WPS" ) );
si.getServiceTypeVersion().add( "1.0.0" );
si.setFees( wps.getFees() );
if ( wps.getAccessConstraints() != null ) {
si.getAccessConstraints().add( wps.getAccessConstraints() );
}
//ServiceProvider
ServiceProviderType sp = owsf.createServiceProviderType();
caps.setServiceProvider( sp );