ApplicationContext is null Flowable 7.2.0

Hi,
We have deployed flowable-rest 7.2.0 under JBOSS EAP 8 and we are able to use Rest APIs successfully.
We also have custom class that extended TaskListner and ExecutionListener which works fine in Flowable 6.8.1 environment but not working in Flowable 7.2.0 and the error points to ApplicationContext is null. Please suggest how to make our custom class works under Flowable 7.2.0 also.
The custom class code:
public class MyCustomListener implements TaskListener, ExecutionListener, MyConstants
{
.
.
.
private RuntimeService runTimeService = (RuntimeService) MySpringApplicationContext.getBean(RuntimeService.class);
.
.
.
.
}

package org.flowable.ui.application;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Component;

@Component
@ComponentScan(basePackages = {“org.flowable.ui.modeler.service”})
public class MySpringApplicationContext implements ApplicationContextAware {

private static ApplicationContext CONTEXT;

public static Object getBean(String beanName) {
    return CONTEXT.getBean(beanName);
}
public static Object getBean(Class<?> classFile) {
	return CONTEXT.getBean(classFile);
}
public void setApplicationContext(ApplicationContext context) throws BeansException {
	CONTEXT = context;		
}