if ( wps.getAccessConstraints() != null ) {
si.getAccessConstraints().add( wps.getAccessConstraints() );
}
//ServiceProvider
ServiceProviderType sp = owsf.createServiceProviderType();
caps.setServiceProvider( sp );
//TODO: set provder name from context
GeoServerInfo geoServer = wps.getGeoServer().getGlobal();
if ( geoServer.getContact().getContactOrganization() != null ) {
sp.setProviderName( geoServer.getContact().getContactOrganization() );
}
else {
sp.setProviderName( "GeoServer" );
}
sp.setProviderSite(owsf.createOnlineResourceType());
sp.getProviderSite().setHref( geoServer.getOnlineResource() );
sp.setServiceContact( responsibleParty( geoServer, owsf ) );
//OperationsMetadata
OperationsMetadataType om = owsf.createOperationsMetadataType();
caps.setOperationsMetadata( om );