move getRuntimeArgument() into AbstractContext

all subclasses currently implement getRuntimeArguments(). It is better if the abstract class implements it. 
I also fixed a couple of warnings about unused variables.