class EnvironmentUrlResourceProvider extends OperatesOnDeploymentAwareProvider {

    @Override
    public Object doLookup(ArquillianResource resource, Annotation... qualifiers) {
        if (DeploymentEnabler.shouldEnableDeployment(algeronProviderConfigurationInstance.get())) {
            return resolveResourceProvider(resource, qualifiers);
        } else {
            final Optional<Environment> environmentAnnotation = getEnvironmentAnnotation(qualifiers);
            if (environmentAnnotation.isPresent()) {
                return resolveAnnotation(environmentAnnotation.get());
            } else {
                return resolveResourceProvider(resource, qualifiers);
            }
        }
    }

    public  EnvironmentUrlResourceProvider();

}