Resident will star in Hamlet at Shakespeare Festival Theater