* to register the service, <code>ipojo</code> otherwise.
*/
public static BundleContext selectContextToRegisterService(String itf,
BundleContext comp, BundleContext ipojo) {
if (System.getSecurityManager() != null) {
final Permission perm = new ServicePermission(itf,
ServicePermission.REGISTER);
if (!comp.getBundle().hasPermission(perm)) {
return ipojo;
}
}