String defaultValue = (String) getAttributes().get("defaultValue");
DefDescriptor<?> desc = Aura.getDefinitionService().getDefDescriptor(descriptor, ThemeDef.class);
Source<?> source = Aura.getContextService().getCurrentContext().getDefRegistry().getSource(desc);
if ("".equals(name)) {
throw new AuraRuntimeException("Cannot leave the name field blank");
}
if ((AuraTextUtil.validateAttributeName(name)) != true) {
throw new AuraRuntimeException("Invalid var name:'" + name
+ "', Refer to Auradocs for valid attribute names");
}
if (!source.exists()) {
throw new AuraError("Cannot find source for " + desc.getQualifiedName());