}
try{
String routeId = params.get(0);
int position = Integer.parseInt(params.get(1));
Bunny bunny = ObjectStore.getInstance().getBunny();
Route route = ObjectStore.getInstance().getRoute(routeId);
if(route == null)
return MessageBox.get().getMessage(Messages.NotFound) + "(Route) \r\n";
if(position < 0 || position > route.getLength()){
return MessageBox.get().getMessage(Messages.Error) + "(nem megfelelo hosszusag) \r\n";
}
bunny.setBunnyPlace(route, position);
return "Sikeresen athekkeltuk a bunnyt!";
} catch(NumberFormatException e){
return MessageBox.get().getMessage(Messages.WrongParameter) + "(position.type == INT)\r\n";
}