Map<OptionMetadata, Object> valueMap = commandContext.getValueMap();
if (valueMap.isEmpty() || valueMap.containsKey(option))
{
if (option.hasCustomCompleter())
{
CommandCompleter completer = BeanManagerUtils.getContextualInstance(manager, option.getCompleterType());
completer.complete(state);
}
else if (option.isEnum())
{
@SuppressWarnings("unchecked")
EnumCompleter completer = new EnumCompleter((Class<Enum<?>>) option.getType());
completer.complete(state);
}
else if (isJavaResourceAssignable(option))
{
completeJavaPaths(state, option, valueMap, new ResourceFilter()
{