String prefix = PropUtils.getScopedPropertyPrefix(this);
String policyPrefix = null;
// //// ProjectionChangePolicy
ProjectionChangePolicy pcp = getProjectionChangePolicy();
if (pcp instanceof PropertyConsumer) {
policyPrefix = ((PropertyConsumer) pcp).getPropertyPrefix();
((PropertyConsumer) pcp).getProperties(props);
}
if (policyPrefix == null) {
policyPrefix = prefix + "pcp";
}
// Whoops, need to make sure pcp is valid but removing the
// OMGHL prefix from the front of the policy prefix (if
// applicable). Same for RenderPolicy
props.put(prefix + ProjectionChangePolicyProperty,
policyPrefix.substring(prefix.length()));
// This has to come after the above line, or the above
// property will have a trailing period.
policyPrefix = PropUtils.getScopedPropertyPrefix(policyPrefix);
props.put(policyPrefix + "class", pcp.getClass().getName());
RenderPolicy rp = getRenderPolicy();
if (rp instanceof PropertyConsumer) {
policyPrefix = ((PropertyConsumer) rp).getPropertyPrefix();
((PropertyConsumer) rp).getProperties(props);