Extract application permissions from a drools file and into Java code.