private static Class<?> getDeploymentClassFromAnnotation() {
        // Had a bug that if you open inside eclipse more than one project with @ArquillianSuiteDeployment and is a dependency, the test doesn't run because found more than one @ArquillianSuiteDeployment.
        // Filter the deployment PER project.
        final Reflections reflections = new Reflections(ClasspathHelper.contextClassLoader().getResource(""));
        Set<Class<?>> results = reflections.getTypesAnnotatedWith(ArquillianSuiteDeployment.class, true);
        if (results.isEmpty()) {
            return null;
        }
        // Verify if has more than one @ArquillianSuiteDeployment. We cannot decide in cases we find more than one class.
        // in that case we will return null and hope there is a configuration in arquillian xml.
        if (results.size() > 1) {
            for (final Class<?> type : results) {
                log.log(Level.SEVERE, "arquillian-suite-deployment: Duplicated class annotated with @ArquillianSuiteDeployment: {0}", type.getName());
            }
            throw new IllegalStateException("Duplicated classes annotated with @ArquillianSuiteDeployment");
        }
        // Return the single result.
        final Class<?> type = results.iterator().next();
        log.log(Level.INFO,"arquillian-suite-deployment: Found class annotated with @ArquillianSuiteDeployment: {0}", type.getName());
        return type;
    }
private static Class < ? > getDeploymentClassFromAnnotation ( ) { final Reflections reflections = new Reflections ( ClasspathHelper . contextClassLoader ( ) . getResource ( "" ) ) ; Set < Class < ? > > results = reflections . getTypesAnnotatedWith ( ArquillianSuiteDeployment . class , true ) ; if ( results . isEmpty ( ) ) { return null ; } if ( results . size ( ) > 1 ) { for ( final Class < ? > type : results ) { log . log ( Level . SEVERE , "arquillian-suite-deployment: Duplicated class annotated with @ArquillianSuiteDeployment: {0}" , type . getName ( ) ) ; } throw new IllegalStateException ( "Duplicated classes annotated with @ArquillianSuiteDeployment" ) ; } final Class < ? > type = results . iterator ( ) . next ( ) ; log . log ( Level . INFO , "arquillian-suite-deployment: Found class annotated with @ArquillianSuiteDeployment: {0}" , type . getName ( ) ) ; return type ; }
Finds class with should produce global deployment PER project.

@return class marked witch @ArquillianSuiteDeployment annotation