@Override
	public void processCommand(String... args) throws SystemCommandException {
		
		Role internshipRole = null;
		
		if (args.length > 2)
			try {
				internshipRole = createNewInternshipRole();
			} catch (Exception e) {
			    // IO or ParseException
				e.printStackTrace();
			}
		else {
			Integer advertIndex = Integer.parseInt(args[0]);
			Integer roleIndex = Integer.parseInt(args[1]);
			
			internshipRole = facade.selectRole(advertIndex,roleIndex);
							
			if (internshipRole == null)
				try {
					internshipRole = createNewInternshipRole();
				} catch (Exception e) {
				    // IOException or ParseException
					e.printStackTrace();
				}				
		}
		
		//Collect supplementary details.
		try {
			String managerName = dialogue.getUserInput("Enter manager name.");
			String managerEmail = dialogue.getUserInput("Enter manager's email address.");
			
			facade.notifyAcceptedOffer(internshipRole, managerName, managerEmail);
						
		} catch (IOException e) {
			e.printStackTrace();
		}
		
	}