*/
public static BundleContext selectContextToRegisterServices(String[] itfs,
BundleContext comp, BundleContext ipojo) {
if (System.getSecurityManager() != null) {
for (int i = 0; i < itfs.length; i++) {
final Permission perm = new ServicePermission(itfs[i],
ServicePermission.REGISTER);
if (!comp.getBundle().hasPermission(perm)) {
return ipojo;
}
}