Removed the use of the BasicProperties Builder (got NoSuchMethodError).
Used deprecatd methods instead :s.