List<String> allInterfaces = getAllInterfacesFromClass(sessionBean);
// if SESSION_BEAN_INTERFACE is contained in the list, add some metadata
if (allInterfaces.contains(SESSION_BEAN_INTERFACE)) {
// first add dependency injection for setSessionContext method.
JAnnotationResource jAnnotationResource = new JAnnotationResource();
// add resource on setSessionContext method
EasyBeansEjbJarMethodMetadata setCtxMethod = getMethod(sessionBean, SETSESSIONCONTEXT_METHOD, false,
SESSION_BEAN_INTERFACE);
setCtxMethod.setJAnnotationResource(jAnnotationResource);