String replacer = command.getProperty(referenceToResolve);
if (((replacer != null) && !replacer.isEmpty())) {
String propertyValueResolved = propertyValue.replaceFirst(occurrence, replacer);
aProperty.setValue(propertyValueResolved);
} else {
throw new VariableResolutionException("Variable '" + referenceToResolve
+ "' cannot be resolved in command '" + command.getName() + "'.\n"
+ "Availabe tokens are: " + context.toString());
}
}
}