class DefaultNewResourceHandler implements NewResourceHandler {

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

        final String fileName = buildFileName(baseFileName,
                                              getResourceType());

        validationService.call(new RemoteCallback<Boolean>() {
            @Override
            public void callback(final Boolean response) {
                if (Boolean.TRUE.equals(response)) {
                    callback.onSuccess();
                } else {
                    callback.onFailure(CommonConstants.INSTANCE.InvalidFileName0(baseFileName));
                }
            }
        }).isFileNameValid(fileName);
    }

      DefaultNewResourceHandler(final WorkspaceProjectContext context,
                              final Caller<KieModuleService> moduleService,
                              final Caller<ValidationService> validationService,
                              final PlaceManager placeManager,
                              final Event<NotificationEvent> notificationEvent,
                              final BusyIndicatorView busyIndicatorView);
    public  DefaultNewResourceHandler();

}