private ExecutionResult checkDropPolicy(
AbstractComponent targetComponent,
Collection<AbstractComponent> sourceComponents,
View targetViewManifesation) {
// Establish policy context.
PolicyContext context = new PolicyContext();
context.setProperty(
PolicyContext.PropertyName.TARGET_COMPONENT.getName(),
targetComponent);
context.setProperty(
PolicyContext.PropertyName.SOURCE_COMPONENTS.getName(),
sourceComponents);
context.setProperty(PolicyContext.PropertyName.ACTION.getName(),
Character.valueOf('w'));
context.setProperty(
PolicyContext.PropertyName.VIEW_MANIFESTATION_PROVIDER
.getName(), targetViewManifesation);
String compositionKey = PolicyInfo.CategoryType.COMPOSITION_POLICY_CATEGORY
.getKey();
// Execute policy