Use genericity to avoid warnings
remove unused import
BS-7667: use latest version of Alfresco connector to have default
value of Mime type set to octet/stream in order that it works by
default. refactor AlfrescoRestClient to limit code duplication (and be
able to sport the issue)