class LocalDhisResourceRepositoryImpl implements LocalDhisResourceRepository<T> {

    @Override
    @Nonnull
    public Optional<T> findOneById( @Nonnull String id )
    {
        final LocalDhisResource<T> local = resourcesById.get( id );

        return local == null ? Optional.empty() : Optional.of( local.getResource() );
    }

    public  LocalDhisResourceRepositoryImpl( @Nonnull Class<T> resourceClass );

}