class FxApplicationThreadMethodInterceptor implements MethodInterceptor {
@Override
public Object invoke(MethodInvocation invocation) throws Throwable {
final FxApplicationThread annotation = invocation.getMethod().getAnnotation(FxApplicationThread.class);
final FxTask fxTask = new FxTask(invocation);
if (annotation == null) {
throw new IllegalStateException("Method is not annotated with '@FxApplicationThread'!");
}