{
Archive<?> archive = (Archive<?>)deploymentMethod.invoke(null);
// TODO: handle deployment attributes like autoAddPakcage etc..
// TODO: move the RunMode handling to one location
RunModeType runMode = RunModeType.IN_CONTAINER;
if(testCase.isAnnotationPresent(Run.class))
{
runMode = testCase.getAnnotation(Run.class).value();
}