Clean up the permission resource using MessageBodyWriters for the perm types