added getPermissions() overload accepting previous API contract ArrayList<T> that was replaced with List<T>.