service-registry/src/main/java/de/evoila/osb/service/registry/manager/BasicManager.java
public Optional<T> update(T t) {
        if (exists(t))
            return Optional.<T>of(repository.save(t));
        return Optional.<T>empty();
    }
/**
     * Updates an object of the type T in the storage, if it exists.
     *
     * @param t object of type T to update in the storage, its id will be used for the existence check
     * @return An empty {@linkplain Optional} if there is no object with the same id or an {@linkplain Optional} with the updated saved object.
     */
Updates an object of the type T in the storage, if it exists.
@param t object of type T to update in the storage, its id will be used for the existence check
@return An empty  Optional if there is no object with the same id or an  Optional with the updated saved object.
Updates an object of the type T in the storage if it exists . @param t object of type T to update in the storage its id will be used for the existence check @return An empty Optional if there is no object with the same id or an Optional with the updated saved object .
public Optional<T> update(T t) {
        if (exists(t))
            return Optional.<T>of(repository.save(t));
        return Optional.<T>empty();
    }
public Optional < T > update ( T t ) { if ( exists ( t ) ) return Optional . < T > of ( repository . save ( t ) ) ; return Optional . < T > empty ( ) ; }
Updates an object of the type T in the storage, if it exists.
Updates an object of the type T in the storage if it exists .