Adapt read from resource (Path is not usable in ejb for resources)