class NewPackageHandler extends DefaultNewResourceHandler {

    @Override
    public void validate(final String packageName,
                         final ValidatorWithReasonCallback callback) {

        validationService.call(new RemoteCallback<Boolean>() {
            @Override
            public void callback(final Boolean response) {
                if (Boolean.TRUE.equals(response)) {
                    callback.onSuccess();
                } else {
                    callback.onFailure(ProjectEditorResources.CONSTANTS.InvalidPackageName(packageName));
                }
            }
        }).isPackageNameValid(packageName);
    }

    public  NewPackageHandler();
    @Inject public  NewPackageHandler(Caller<KieModuleService> moduleService,
                             Caller<ValidationService> validationService,
                             AnyResourceTypeDefinition resourceType);

}