class WorkItemDefinitionDefaultDeployService implements WorkItemDefinitionDeployService {

    @Override
    public void deploy(final Metadata metadata) {
        backendFileSystemManager
                .deploy(resources.resolveGlobalPath(metadata),
                        new Assets(Arrays.stream(ASSETS)
                                           .map(asset -> assetBuilder.apply(asset,
                                                                            ASSETS_ROOT + asset))
                                           .collect(Collectors.toList())),
                        DEPLOY_MESSAGE);
    }

    protected  WorkItemDefinitionDefaultDeployService();
    @Inject public  WorkItemDefinitionDefaultDeployService(final WorkItemDefinitionResources resources,
                                                  final BackendFileSystemManager backendFileSystemManager);
      WorkItemDefinitionDefaultDeployService(final WorkItemDefinitionResources resources,
                                           final BackendFileSystemManager backendFileSystemManager,
                                           final BiFunction<String, String, Asset> assetBuilder);

}