* @param properties the predicate
*
* @return the service request object
*/
private ServiceRequest getRequest(Map<String, Object> properties) {
ServiceRequest svcRequest = new ServiceRequest(
(String) properties.get(SERVICE_CLUSTER_NAME_PROPERTY_ID),
(String) properties.get(SERVICE_SERVICE_NAME_PROPERTY_ID),
null,
(String) properties.get(SERVICE_SERVICE_STATE_PROPERTY_ID));
Map<String, String> configMappings =
ConfigurationResourceProvider.getConfigPropertyValues(properties);
if (configMappings.size() > 0) {
svcRequest.setConfigVersions(configMappings);
}
return svcRequest;
}