added controller method to retrieve metadata form entites and binaries