Adds private declarations to generated resource controller