for (FeatureTypeStyle featureTypeStyle : featureTypeStyles) {
// Getting the main transformation
Expression transformation = featureTypeStyle.getTransformation();
if (transformation instanceof ProcessFunction) {
final ProcessFunction processFunction = (ProcessFunction) transformation;
final String processName = processFunction.getName();
// Checking whether the processFunction is a DynamicColorMapProcess
if (processName.equalsIgnoreCase(DynamicColorMapProcess.NAME)) {
return getColorRampDefinition(processFunction);
}