}
private Dependency createBundleDependency(DependencyManager dm, String added, String changed,
String removed, boolean required, boolean propagate, String filter, int stateMask, boolean instanceBound)
{
BundleDependency bd = dm.createBundleDependency();
bd.setCallbacks(added, changed, removed);
bd.setRequired(required);
bd.setPropagate(propagate);
if (filter != null)
{
bd.setFilter(filter);
}
if (stateMask != -1)
{
bd.setStateMask(stateMask);
}
bd.setInstanceBound(instanceBound);
return bd;
}