Class caller = m_smEx.getClassContext()[3];
if (((Felix.m_secureAction.getClassLoader(caller) != m_classloader) ||
!caller.getName().startsWith("org.apache.felix.framework.")))
{
((SecurityManager) sm).checkPermission(
new AdaptPermission(type.getName(), this, AdaptPermission.ADAPT));
}
}
}