*/
public static void resolve(final EasyBeansEjbJarClassMetadata sessionBean) throws ResolverException {
sessionBean.getEjbJarDeployableMetadata();
// Local and remote interfaces of the bean.
IJLocal currentLocalInterfaces = sessionBean.getLocalInterfaces();
IJRemote currentRemoteInterfaces = sessionBean.getRemoteInterfaces();
// Get all interfaces of the bean
String[] interfaces = sessionBean.getInterfaces();
for (String itf : interfaces) {
EasyBeansEjbJarClassMetadata itfAnnotationMetadata = sessionBean.getLinkedClassMetadata(itf);
// Interface was analyzed, try to see the type of the interface
if (itfAnnotationMetadata != null) {
// Report type of interface in the bean
IJLocal jLocal = itfAnnotationMetadata.getLocalInterfaces();
if (jLocal != null) {
if (currentLocalInterfaces == null) {
currentLocalInterfaces = new JLocal();
sessionBean.setLocalInterfaces(currentLocalInterfaces);
}